import { get, post } from './http.ts'



interface ClinicInfoParams {
    pagesize?: number;
    pagenum?: number;
}

/** 诊所信息 */
export const cliniclist = async (data: { pagesize?: number, pagenum?: number }) => {
    return get('/cliniclist', data)
}

// clinicadd

/** 诊所添加 */
export const clinicadd = async (data: { name: string, address: string, phone: string, desc: string, date: array, imgs: array, star: number }) => {
    return post('/clinicadd', data)
}
// clinicdel
/** 诊所删除 */
export const clinicdel = async (data: { id: any }) => {
    return post('/clinicdel', data)
}

/** 诊所信息 */
export const clinicinfo = async (data: { id?: any }) => {
    return get('/clinicinfo', data)
}

// clinicedit
export const clinicedit = async (data: { id: any }) => {
    return post('/clinicedit', data)
}